

        <g:set var="entityName" value="${message(code: 'restTime.label', default: 'RestTime')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${restTimeInstance?.id}" />
                <g:hiddenField name="version" value="${restTimeInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="startHour"><g:message code="restTime.startHour.label" default="Start Hour" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restTimeInstance, field: 'startHour', 'errors')}">
                                    <g:select name="startHour" from="${0..24}" value="${fieldValue(bean: restTimeInstance, field: 'startHour')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="endHour"><g:message code="restTime.endHour.label" default="End Hour" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restTimeInstance, field: 'endHour', 'errors')}">
                                    <g:select name="endHour" from="${0..24}" value="${fieldValue(bean: restTimeInstance, field: 'endHour')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="startMinute"><g:message code="restTime.startMinute.label" default="Start Minute" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restTimeInstance, field: 'startMinute', 'errors')}">
                                    <g:select name="startMinute" from="${0..60}" value="${fieldValue(bean: restTimeInstance, field: 'startMinute')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="endMinute"><g:message code="restTime.endMinute.label" default="End Minute" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restTimeInstance, field: 'endMinute', 'errors')}">
                                    <g:select name="endMinute" from="${0..60}" value="${fieldValue(bean: restTimeInstance, field: 'endMinute')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="school"><g:message code="restTime.school.label" default="School" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restTimeInstance, field: 'school', 'errors')}">
                                    <g:select name="school.id" from="${School.list()}" optionKey="id" value="${restTimeInstance?.school?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
